//
//  ZBMoBanSevenViewController.m
//  MoBan
//
//  Created by apple on 16/7/14.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "ZBMoBanSevenViewController.h"
#import "ZBMoBanSevenTableviewCell.h"
#import "selectView.h"
@interface ZBMoBanSevenViewController ()<UITableViewDataSource,UITableViewDelegate,selectViewDeleget>
@property(nonatomic,strong)UITableView *tableview;
@property(nonatomic,strong)selectView *seleview;
@end

@implementation ZBMoBanSevenViewController
-(selectView *)seleview
{
    if (!_seleview) {
        _seleview = [[selectView alloc]init];
        _seleview.frame=CGRectMake(0, 0, KscrW, 40*Kscr);
        [_seleview gaveMestringArray:@[@"数据1",@"数据2"]];
        _seleview.deleget = self;
    }
    return _seleview;
}
-(UITableView *)tableview
{
    if (!_tableview) {
        _tableview = [[UITableView alloc]initWithFrame:CGRectMake(0, self.seleview.bottom, KscrW, KscrH-KBar1)];
        _tableview.dataSource = self;
        _tableview.delegate = self;
        _tableview.rowHeight = 300*Kscr;
}
    return _tableview;

}
- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addSubview:self.seleview];
    [self.view addSubview:self.tableview];
    // Do any additional setup after loading the view.
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 10;
}

// Row display. Implementers should *always* try to reuse cells by setting each cell's reuseIdentifier and querying for available reusable cells with dequeueReusableCellWithIdentifier:
// Cell gets various attributes set automatically based on table (separators) and data source (accessory views, editing controls)

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    ZBMoBanSevenTableviewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"ZBMoBanSevenTableviewCell"];
    if (!cell) {
        cell = [[ZBMoBanSevenTableviewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"ZBMoBanSevenTableviewCell"];
    }
    return cell;

}
/**
 选择框的点击

 */
-(void)btnClic:(selectButten *)btn
{
    [ZBProssHud showsuccessFrom:self.view with:@"点击"];


}


@end
